package com.yanyu.space.codegen.bean.enums;

import com.yanyu.space.common.core.bean.enums.IRCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yanyu
 */
@AllArgsConstructor
@Getter
public enum CodegenRCode implements IRCode {
    TEMPLATEGROUP_NOTEMPTY(30001, "模板命名空间不能为空"),
    TESTDS_FAIL(30002, "数据库连接失败"),
            ;

    private int code;

    private String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
